<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>New student</title>
</h:head>
<h:body>
	<h1>Create a new student</h1>
	<h:form>
		<div>
			<span>Last name:<h:inputText value="#{studentBean.student.lastName}"></h:inputText></span><br/>
			<span>First name: <h:inputText value="#{studentBean.student.firstName}"></h:inputText></span><br/>
			<span>Matricle number: <h:inputText value="#{studentBean.student.matricleNumber}"></h:inputText></span><br/>
			<span>Day of birth: 
			<h:inputText value="#{studentBean.student.dayOfBirth}">
			<f:convertDateTime dateStyle="d-M-yyyy"></f:convertDateTime>
			</h:inputText>
			</span><br/>
			<span>Email: <h:inputText value="#{studentBean.student.email}"></h:inputText></span><br/>
		</div>
		<h:commandButton action="#{studentBean.create}" value="Create new student"/>
	</h:form>
</h:body>
</html>